package way.learning.yiyi.communicate;

public class A implements Runnable {
    private ThreadStop t;
    public A(ThreadStop t) {
        this.t = t;
    }
    public void run() {
        long begin = System.currentTimeMillis(), end = System.currentTimeMillis();
        while (Math.abs(end - begin) < 10000) {
            end = System.currentTimeMillis();
        }
        t.setValue(false);
    }
}